function [isOkay] = checkDASResponse(xmlS,status)
% CHECKDASRESPONSE used by DASMiner Browser to create a message box about the status of a DAS query
% 
% SYNTAX: [isOkay] = checkDASResponse(xmlS,status)
%         xmlS - struct resulted from parsing DAS XML
%         status - status returned by readDASURL
%
% See also DAS_GUI, SEARCHREGISTRY_GUI, READDASURL
%  
%    DASMiner: DAS library and browser for Matlab.
%    Diogo Veiga, March 2008.
        
isOkay = 1;
if (~status)
    msgbox('DAS Registry is taking too long to respond. Increase timeout and try again.','DAS Registry not responding','warn');
    isOkay = 0;
    return;
end

if (~isstruct(xmlS))
    msgbox('Problem Parsing XML DAS Response','Bad Parsing','warn');
    isOkay = 0;
    return;
end